package com.cindata

class MortgageCollateral
{

    Date createdDate = new Date()
    Date modifiedDate = new Date()

    static belongsTo = [mortgage: Mortgage, collateral: Collateral]

    static mapping = {
        cache true
    }

    static constraints = {
        mortgage unique: ['collateral']
        createdDate nullable: true, blank: true
        modifiedDate nullable: true, blank: true
        mortgage nullable: true, blank: true
    }
}